package cn.smbms.mapper.role;

import cn.smbms.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: liyuxuan
 * @Date:2021/10/18 - 10 - 18 - 13:38
 */
public interface RoleMapper {
    List<Role> getAllRoleList();
    int getRoleByCode(String code);
    int del(String id);
    int add(Role role);
    int update(@Param("role") Role role ,@Param("id") String id);
    int getUserById(String id);
    Role getRoleById(String id);
}
